/**
 * 
 */
package com.davetrudes.jung.client.visualization.event;

/**
 * @author dave.trudes
 *
 */
public class EventObject {

	protected Object source;
	
	public EventObject(Object source){
		if (source == null){
			throw new IllegalArgumentException("Given source is null");
		}
		this.source = source;
	}
	
	public Object getSource(){
		return source;
	}
	
	public String toString(){
		return getClass().getName() + "[source: " + source + "]";
	}
}
